package com.xingchi.tornado.dict.event;

import com.xingchi.tornado.core.enums.OperateTypeEnum;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 字典数据变更事件
 *
 * @author xiaoya
 * @date 2025/7/3 11:44
 */
@Getter
public class DictDataChangeEvent extends ApplicationEvent {

    private final String groupCode;
    private final OperateTypeEnum operateType;

    public DictDataChangeEvent(String groupCode, OperateTypeEnum operateType) {
        super(groupCode);
        this.groupCode = groupCode;
        this.operateType = operateType;
    }
}
